<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>优惠券列表</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/coupon/addCoupon.css">
</head>
<body>

<div id="dselect" style="overflow: visible;">
    <form class="layui-form"  action="javascript:;">
        <div class="layui-form-item" id="goo">
            <div>
                <label class="layui-form-label">优惠券名称：</label>
                <div class="layui-input-inline">
                    <input type="text" name="couponName" placeholder="请输入" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">发放方式：</label>
                <div class="layui-input-inline">
                    <select name="couponManner" lay-filter="couponManner">
                        <option value="">请选择发放方式</option>
                        <option value="自动发放">自动发放</option>
                        <option value="活动领取">活动领取</option>
                        <option value="人工发放">人工发放</option>
                        <option value="无限制">无限制</option>
                    </select>
                </div>
                <label class="layui-form-label">剩余数量：</label>
                <div class="layui-input-inline">
                    <input type="text" name="couponRemainder" id="couponRemainder" oninput='this.value=this.value.replace(/[^0-9]*$/,"")'; onblur='this.value=this.value.replace(/^[0]+[0-9]*$/gi,"")'; placeholder="请输入数字，不能以0开头！！" autocomplete="off" class="layui-input">
                </div>
            </div>
            <button class="layui-btn" lay-submit lay-filter="go"><i class="layui-icon layui-icon-search"></i>搜索</button>
            <button type="reset" class="layui-btn layui-btn-danger"><i class="layui-icon layui-icon-refresh"></i>重置</button>
        </div>
    </form>
</div>
</div>
<table id="demo" lay-filter="test"></table>

<script src="/js/jquery-3.6.0.js"></script>
<script src="/layui/layui.js"></script>
<script src="/js/coupons/coupons.js"></script>

</body>
<script type="text/html" id="toolDemo">
    <a lay-event="addCoupon" type="button" class="layui-btn">添加优惠券</a>
</script>
<script type="text/html" id="barDemo">
    <a lay-event="SeeCoupon" type="button" class="layui-btn layui-btn-radius layui-btn-primary">查看优惠详情</a>
</script>
</html>